
// 代码题一、使用promise改进异步代码

let promise = new Promise((resolve) => {
    console.log('hello')
    resolve('hello')
})

promise.then(value => {
    return ((value + ' lagou'))
}).then(value => {
    console.log(value + ' I love you')
})